@font-face {
    font-family: 'Ajusted Cyrillic';
    src: local('Barlow');
}

:root {
    --primary-color: #9b4dff;
    --primary-light: #b47aff;
    --primary-dark: #7a2ee0;
    --text-color: #e4e4ed;
    --text-secondary: #8888a0;
    --light-gray: #1e1e2e;
    --border-color: #2a2a3d;
    --success-color: #34d399;
    --error-color: #f87171;
    --bg-body: #0f0f13;
    --bg-surface: #1a1a24;
    --bg-elevated: #22223a;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s ease;
    --glow-primary: 0 0 20px rgba(155, 77, 255, 0.15);
}

body {
    font-family: 'Barlow', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-body);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    color: var(--primary-light);
    margin-bottom: 10px;
    text-align: center;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: -0.02em;
}

/* Create Button */
.create-button-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

/* Grid Header: Search + Sort */
.grid-header {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.search-container {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

.search-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-surface);
    color: var(--text-color);
    font-family: 'Barlow', sans-serif;
}

.sort-select {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9rem;
    background-color: var(--bg-surface);
    color: var(--text-color);
    font-family: 'Barlow', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    min-width: 160px;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(155, 77, 255, 0.15);
}

.sort-select option {
    background-color: var(--bg-elevated);
    color: var(--text-color);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(155, 77, 255, 0.15);
    background-color: var(--bg-elevated);
}

.btn-create {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-cancel {
    background-color: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Grid Layout */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 10px;
}

.product-card {
    background-color: var(--bg-surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), var(--glow-primary);
    border-color: rgba(155, 77, 255, 0.3);
}

.product-image {
    height: 180px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.product-image::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: var(--bg-image) center/cover no-repeat;
    filter: blur(15px);
    z-index: 1;
}

.product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-image) center/contain no-repeat;
    z-index: 2;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.modal-overlay.stacked {
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1100;
}

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

.modal-content {
    background-color: var(--bg-surface);
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--glow-primary);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    border: 1px solid var(--border-color);
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: var(--bg-surface);
    z-index: 10;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

/* Modal title area */
.modal-title-area {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.product-id-badge {
    font-size: 0.7rem;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 400;
    font-family: monospace;
    opacity: 0.6;
    transition: var(--transition);
}

.product-id-badge:hover {
    opacity: 1;
    color: var(--primary-light);
}

.product-id-badge.copied::after {
    content: ' copied!';
    color: var(--success-color);
}

/* Inline-editable title */
.modal-title-editable {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.modal-title-text {
    color: var(--primary-light);
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.modal-title-input {
    display: none;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-light);
    background: var(--bg-elevated);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 4px 12px;
    font-family: 'Barlow', sans-serif;
    flex: 1;
    min-width: 0;
}

.modal-title-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(155, 77, 255, 0.15);
}

.modal-title-edit {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px 6px;
    border-radius: 4px;
    transition: var(--transition);
    flex-shrink: 0;
}

.modal-title-edit:hover {
    color: var(--primary-light);
    background: rgba(155, 77, 255, 0.1);
}

.modal-title-editable.editing .modal-title-text,
.modal-title-editable.editing .modal-title-edit {
    display: none;
}

.modal-title-editable.editing .modal-title-input {
    display: block;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--error-color);
    background-color: rgba(248, 113, 113, 0.1);
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
}

.modal-body-split {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.modal-sidebar {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
}

.modal-main {
    flex: 1;
    min-width: 0;
}

.product-image-large {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.product-image-large::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: var(--bg-image) center/cover no-repeat;
    filter: blur(15px);
    z-index: 1;
}

.product-image-large::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-image) center/contain no-repeat;
    z-index: 2;
}

.product-image-large:hover {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-details h3 {
    margin: 8px 0 4px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--primary-dark);
    color: var(--primary-light);
    font-size: 1.1rem;
}

.detail-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-group label {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.detail-group label .required {
    color: var(--error-color);
    margin-left: 4px;
}

.edit-field {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Barlow', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-surface);
    color: var(--text-color);
}

.edit-field::placeholder {
    color: var(--text-secondary);
}

.edit-field:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(155, 77, 255, 0.15);
    background-color: var(--bg-body);
}

.readonly-field {
    background-color: var(--bg-body);
    color: var(--text-secondary);
    cursor: not-allowed;
    border-color: var(--border-color);
}

.readonly-field:focus {
    border-color: var(--border-color);
    box-shadow: none;
}

textarea.edit-field {
    min-height: 120px;
    resize: vertical;
}

.file-input-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-input {
    padding: 8px;
    background-color: var(--bg-surface);
    border-radius: 8px;
    border: 1px dashed var(--border-color);
    cursor: pointer;
    color: var(--text-color);
}

.current-image-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 5px 0;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    position: sticky;
    bottom: 0;
    background-color: var(--bg-surface);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

/* Buttons */
.btn {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.btn-update {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-delete {
    background-color: rgba(248, 113, 113, 0.15);
    color: var(--error-color);
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.btn-delete:hover {
    background-color: var(--error-color);
    color: white;
}

.btn-suggest-metadata {
    background-color: rgba(52, 211, 199, 0.15);
    color: #34d3c7;
    border: 1px solid rgba(52, 211, 199, 0.3);
    margin-right: auto;
}

.btn-suggest-metadata:hover {
    background-color: #17a2b8;
    color: white;
}

.btn-suggest {
    background-color: rgba(52, 211, 199, 0.15);
    color: #34d3c7;
    border: 1px solid rgba(52, 211, 199, 0.3);
}

.btn-suggest:hover {
    background-color: #17a2b8;
    color: white;
}

.btn-post {
    background-color: rgba(29, 161, 242, 0.15);
    color: #60b8f7;
    border: 1px solid rgba(29, 161, 242, 0.3);
    margin-left: 10px;
}

.btn-post:hover {
    background-color: #1DA1F2;
    color: white;
}

.btn-copy-message {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 15px;
    font-size: 0.9em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.2s;
}

.btn-copy-message:hover {
    filter: brightness(1.15);
}

.btn:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn.disabled {
    background-color: var(--bg-elevated);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
    box-shadow: none;
    border: 1px solid var(--border-color);
}

.btn.disabled:hover {
    filter: none;
    transform: none;
    box-shadow: none;
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    background-color: var(--bg-elevated);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 1100;
    transition: var(--transition);
    max-width: 300px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-color);
}

.notification.success {
    border-left: 4px solid var(--success-color);
}

.notification.error {
    border-left: 4px solid var(--error-color);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

/* Empty states */
.no-products, .error-message {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--bg-surface);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.no-products i, .error-message i {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.error-message i {
    color: var(--error-color);
}

/* Responsive */
/* product-details stays single column in sidebar layout */

@media (max-width: 767px) {
    .modal-content {
        width: 95%;
    }

    .modal-body-split {
        flex-direction: column;
    }

    .modal-sidebar {
        width: 100%;
        position: static;
    }

    .product-image-large {
        aspect-ratio: 16/9;
    }
}

/* Keywords section */
.keywords-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.keywords-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.keywords-header label {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
}

.keywords-header label i {
    margin-right: 6px;
    color: var(--primary-color);
}

.keywords-actions {
    display: flex;
    gap: 4px;
}

.keywords-actions button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.keywords-actions button:hover {
    color: var(--primary-light);
    background: rgba(155, 77, 255, 0.1);
}

.keywords-actions .copied::after {
    content: ' copied!';
    color: var(--success-color);
    font-size: 0.7rem;
}

.keywords-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.keyword-badge {
    display: inline-block;
    background: rgba(155, 77, 255, 0.12);
    color: var(--primary-light);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.82rem;
}

.keywords-empty {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
}

.keywords-input {
    display: none;
}

.keywords-section.editing .keywords-badges {
    display: none;
}

.keywords-section.editing .keywords-input {
    display: block;
}

/* Title + Price row */
.title-price-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

/* Sidebar links */
.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.sidebar-links > label {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}

.sidebar-links > label i {
    margin-right: 6px;
    color: var(--primary-color);
}

.sidebar-link-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sidebar-link-row img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sidebar-link-input {
    flex: 1;
    padding: 5px 8px !important;
    font-size: 0.8rem !important;
    min-width: 0;
}

.sidebar-link-row .link-row-btn {
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
}

/* Compact links list (unused but kept for compatibility) */
.links-compact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    grid-column: 1 / -1;
}

.link-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.link-row img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.link-row .edit-field {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.9rem;
    min-width: 0;
}

.link-row-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-decoration: none;
    flex-shrink: 0;
    transition: var(--transition);
    font-size: 0.8rem;
}

.link-row-btn:hover {
    filter: brightness(1.15);
    transform: scale(1.05);
}

.link-row-btn.disabled {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    opacity: 0.4;
    pointer-events: none;
}

.image-edit-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.image-edit-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.3) 100%);
    border-radius: 12px;
    z-index: 3;
}

.id-display {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
}

.detail-group label i {
    margin-right: 8px;
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.current-image-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-image-info i {
    color: var(--primary-color);
}

.product-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 10px;
}

.product-link-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: var(--transition);
}

.product-link-icon.inactive {
    filter: grayscale(100%) opacity(0.3);
}

.product-link-icon:hover {
    transform: scale(1.2);
}

.link-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-right: 8px;
    vertical-align: middle;
}

.detail-group label img {
    margin-right: 8px;
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
}

/* Validation styles */
.invalid {
    border: 2px solid var(--error-color) !important;
    background-color: rgba(248, 113, 113, 0.05);
}

.error-message {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 5px;
}

.url-validation {
    min-height: 20px;
}

/* Notification styles */
.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 10px;
    padding: 5px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.notification-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

/* Input with button */
.input-with-button {
    display: flex;
    align-items: center;
    position: relative;
}

.input-with-button input {
    flex: 1;
    padding-right: 40px; /* Space for the button */
}

.input-link-button {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    margin-left: -38px;
    position: relative;
    z-index: 2;
}

.input-link-button:hover {
    filter: brightness(1.15);
    transform: scale(1.05);
}

.input-link-button.disabled {
    background: var(--bg-elevated);
    cursor: not-allowed;
    opacity: 0.4;
}

.input-link-button.disabled:hover {
    transform: none;
    filter: none;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
    backdrop-filter: blur(4px);
}

.loading-spinner {
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 5px solid var(--primary-color);
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 18px;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Platform selector modal */
.platform-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.platform-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.platform-option:hover {
    background-color: var(--bg-elevated);
    border-color: var(--border-color);
}

.platform-option img {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}

/* Patreon post modal */
.patreon-post-modal .modal-body {
    padding: 20px;
}

.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--bg-elevated);
    color: var(--text-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    border: 1px solid var(--border-color);
}

.step:hover {
    background-color: var(--border-color);
}

.step.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-color: transparent;
}

.step-line {
    height: 2px;
    width: 50px;
    background-color: var(--border-color);
}

.step-content {
    margin-top: 20px;
}

.step-description {
    margin-bottom: 20px;
    padding: 10px;
    background-color: var(--bg-elevated);
    border-radius: 8px;
    color: var(--text-secondary);
}

.patreon-field {
    margin-bottom: 15px;
}

.field-label {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-secondary);
}

.field-value {
    padding: 8px;
    background-color: var(--bg-elevated);
    border-radius: 6px;
    color: var(--text-color);
}

/* Rich text editor */
.rich-text-editor {
    min-height: 150px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
    background-color: var(--bg-surface);
    color: var(--text-color);
}

/* Quill styles */
.ql-toolbar {
    border-radius: 6px 6px 0 0;
    border-color: var(--border-color) !important;
    background-color: var(--bg-elevated);
}

.ql-toolbar .ql-stroke {
    stroke: var(--text-secondary) !important;
}

.ql-toolbar .ql-fill {
    fill: var(--text-secondary) !important;
}

.ql-toolbar .ql-picker-label {
    color: var(--text-secondary) !important;
}

.ql-container {
    border-radius: 0 0 6px 6px;
    min-height: 150px;
    border-color: var(--border-color) !important;
    background-color: var(--bg-surface);
    color: var(--text-color);
}

.ql-editor.ql-blank::before {
    color: var(--text-secondary);
}

/* Patreon link prompt styles */
.prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.prompt-content {
    background-color: var(--bg-surface);
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--border-color);
}

.prompt-content h3 {
    margin-top: 0;
    color: var(--primary-light);
}

.prompt-content input {
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    margin: 10px 0;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-elevated);
    color: var(--text-color);
}

.full-width-input {
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    margin: 10px 0;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-elevated);
    color: var(--text-color);
}

.prompt-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.tags-display {
    line-height: 1.8;
    padding: 10px;
    background-color: var(--bg-elevated);
    border-radius: 6px;
    max-height: 100px;
    overflow-y: auto;
}

.tag {
    display: inline-block;
    background-color: rgba(155, 77, 255, 0.15);
    color: var(--primary-light);
    border-radius: 4px;
    padding: 2px 8px;
    margin: 2px;
    font-size: 0.9em;
}

.btn-continue {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

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