button {
    box-shadow: none !important;
}
.flatpickr-calendar {
    border-radius: 16px !important;
    font-family: 'Comfortaa', Arial, sans-serif;
}
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day:hover, .flatpickr-day:focus {
    background: #707DFF !important;
    color: #fff !important;
    border-radius: 8px !important;
}
.course-meta-value {
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: 18px;
    font-family: 'Manrope', Arial, sans-serif;
    font-weight: 500;
    color: #222;
    padding: 5px;
    margin-bottom: 0;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.2s;
}
#start-date-input.course-meta-value {
    background: #D6F5EC;
    border-radius: 20px;
    padding: 8px 18px;
}
.course-meta-suffix {
    font-size: 18px;
    color: #3A4A5B;
    margin-left: 4px;
    font-family: 'Manrope', Arial, sans-serif;
    font-weight: 400;
}
.hero-list-remove {
    background: none;
    border: none;
    color: #707DFF;
    font-size: 24px;
    font-weight: bold;
    margin-left: 12px;
    cursor: pointer;
    vertical-align: middle;
    transition: color 0.2s;
    outline: none;
}
.hero-list-remove:hover {
    color: #3A4A5B;
}
.course-hero-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    position: relative;
    padding-right: 8px;
}
.hero-tag {
    display: inline-block;
}
.hero-tag.dragging {
    opacity: 0.5;
}
.hero-tag.dragover {
    outline: 2px dashed #707DFF;
    background: #e6eaff;
}
.course-select-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff url('data:image/svg+xml;utf8,<svg fill="%23707DFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 16px center/18px 18px;
    padding: 5px 40px 5px 10px;
    cursor: pointer;
    border: 1.5px solid #e0e6ed;
    border-radius: 18px;
    font-size: 16px;
    height: 48px;
    font-family: inherit;
    box-sizing: border-box;
}
.course-select-input:focus {
    outline: none;
    border-color: #707DFF;
}
.course-meta-cards-row {
    display: flex;
    gap: 24px;
    margin: 32px 0 20px 0;
    flex-wrap: wrap;
}
.course-meta-card {
    background: #fff;
    border-radius: 25px;
    padding: 24px 32px 20px 32px;
    min-width: 260px;
    flex: 1 1 260px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 90px;
}
.course-meta-badge {
    background: #E6F0FA;
    color: #3A4A5B;
    font-size: 16px;
    font-weight: 500;
    border-radius: 20px;
    padding: 4px 16px;
    margin-bottom: 12px;
    display: inline-block;
}
.course-meta-suffix {
    font-size: 18px;
    color: #3A4A5B;
    margin-left: 4px;
    font-family: 'Manrope', Arial, sans-serif;
    font-weight: 400;
}
@media (max-width: 900px) {
.course-meta-cards-row {
    flex-direction: column;
    gap: 16px;
}
.course-meta-card {
    min-width: 0;
    width: 100%;
    padding: 20px 16px 16px 16px;
}
}
.course-hero-block {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #f7f8ff;
    border-radius: 40px;
    padding: 48px 40px 40px 40px;
    margin-bottom: 40px;
    align-items: stretch;
    min-height: 540px;
}
.course-hero-main-row {
    display: flex;
    gap: 40px;
    align-items: stretch;
    width: 100%;
}
.course-hero-left {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 24px;
    min-width: 0;
}
.course-hero-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-tag {
    background: transparent;
    border: 1px solid #d9d9d9;
    color: #222;
    border-radius: 25px;
    padding: 5px 22px;
    font-size: 18px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hero-tag:first-child {
    background: rgba(112, 125, 255, 0.6) !important;
    color: #fff !important;
    border: none !important;
}
.hero-tag-add {
    background: #f1f3f6;
    color: #707DFF;
    border: none;
    border-radius: 18px;
    padding: 8px 22px;
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}
.hero-tag-add:hover {
    background: #e0e6ff;
}
.course-hero-title {
    font-size: 56px;
    font-weight: 700;
    color: #111;
    outline: none;
    margin-bottom: 8px;
    line-height: 1.05;
    letter-spacing: 1px;
    word-break: break-word;
    max-width: 900px;
    margin-top: 10px;
}
.course-hero-subtitle {
    font-size: 24px;
    color: #222;
    font-weight: 400;
    outline: none;
    margin-bottom: 24px;
    line-height: 1.3;
}
.course-hero-list {
    list-style: none;
    padding-left: 0;
}
.course-hero-list li {
    position: relative;
    padding-left: 2.15em;
    color: #222;
    font-size: 18px;
    min-height: 28px;
    margin-bottom: 10px;
}
.course-hero-list li::before {
    content: '';
    position: absolute;
    left: 0.3em;
    top: 0.35em;
    width: 0.9em;
    height: 0.9em;
    background: rgba(112, 125, 255, 0.7);
    border-radius: 50%;
    display: inline-block;
}
.hero-list-add {
    background: none;
    border: none;
    color: #707DFF;
    font-size: 20px;
    cursor: pointer;
    text-align: left;
    margin-left: 8px;
    margin-bottom: 24px;
    font-weight: 500;
    padding: 0;
    max-width: 200px;
}
.hero-list-add:hover {
    background-color: transparent !important;
    box-shadow: none;
    color: #5c69fb;
}
.course-hero-actions {
    display: flex;
    gap: 18px;
    margin-top: 18px;
}
.hero-btn-main {
    background: #111;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 22px;
    font-weight: 600;
    padding: 16px 38px;
    cursor: pointer;
    transition: background 0.2s;
}
.hero-btn-main:hover {
    background: #222;
}
.hero-btn-outline {
    background: #fff;
    color: #111;
    border: 2px solid #111;
    border-radius: 12px;
    font-size: 22px;
    font-weight: 600;
    padding: 16px 38px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.hero-btn-outline:hover {
    background: #f1f3f6;
    color: #707DFF;
    border-color: #707DFF;
}
.hero-btn-fav {
    background: #fff;
    color: #111;
    border: 2px solid #111;
    border-radius: 12px;
    font-size: 22px;
    font-weight: 600;
    padding: 16px 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s, color 0.2s;
}
.hero-btn-fav:hover {
    background: #f1f3f6;
    color: #707DFF;
    border-color: #707DFF;
}
.course-hero-right {
    margin-left: auto;
    width: 420px;
    min-width: 320px;
    align-items: center;
    justify-content: flex-end;
}
.hero-image-dropzone {
    width: 100%;
    min-height: 520px;
    border: 2px dashed #707DFF;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s;
}
.hero-image-dropzone.dragover {
    border-color: #4a5fff;
    background: #e6eaff;
}
#hero-image-placeholder {
    color: #707DFF;
    font-size: 22px;
    font-weight: 500;
    text-align: center;
    padding: 32px 0;
}
#hero-image-preview {
    height: auto;
    border-radius: 24px;
    display: block;
    object-fit: cover;
    max-height: 520px;
}
.hero-tag-input {
    font-size: 18px;
    border: none;
    border-radius: 18px;
    padding: 8px 22px;
    outline: none;
    margin-right: 6px;
    min-width: 120px;
    max-width: 220px;
    background: #f1f3f6;
    color: #222;
    box-shadow: 0 1px 2px rgba(80,80,120,0.04);
    transition: box-shadow 0.2s, background 0.2s;
    margin-bottom: 2px;
    animation: tagInputAppear 0.18s;
}
@keyframes tagInputAppear {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
@media (max-width: 1100px) {
    .course-hero-block { flex-direction: column; gap: 24px; padding: 32px 10px; }
    .course-hero-right { width: 100%; min-width: 0; }
    .hero-image-dropzone { min-height: 320px; }
    .course-hero-title { font-size: 38px; }
}
.course-display-block {
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 4px 24px 0 rgba(112,125,255,0.06);
    margin: 32px 0 32px 0;
    padding: 0;
    overflow: hidden;
    transition: box-shadow 0.2s, border 0.2s;
    border: 2px solid transparent;
}
.course-display-block.open { border-color: #707DFF; }
.course-display-block.open {
    border: 2px solid #707DFF;
    box-shadow: 0 8px 32px 0 rgba(112,125,255,0.10);
}
.display-block-header {
    padding: 18px 32px;
    font-size: 22px;
    font-weight: 500;
    color: #222;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}
.display-block-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
    border-radius: 16px;
    width: 60px;
    height: 60px;
    pointer-events: none;
}
.display-block-toggle .toggle-bg {
    transition: fill 0.2s;
}
.display-block-toggle .toggle-border {
    transition: stroke 0.2s;
}
.display-block-toggle .toggle-arrow {
    transition: transform 0.3s, stroke 0.3s;
    transform-origin: 50% 50%;
    stroke: white;
}
.course-display-block.open .display-block-toggle .toggle-bg {
    fill: #fff;
}
.course-display-block.open .display-block-toggle .toggle-border {
    stroke: #707DFF;
}
.course-display-block.open .display-block-toggle .toggle-arrow {
    transform: rotate(-90deg);
    stroke: #707DFF;
}
.course-display-block .display-block-content { display: none; padding: 32px 32px 24px 32px; }
.course-display-block.open .display-block-content { display: block; }
.course-display-block .display-block-header { user-select: none; }
.course-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.course-tag {
    background: transparent;
    border: 1px solid #d9d9d9;
    color: #222;
    border-radius: 25px;
    padding: 5px 22px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
/* Удаляю спецстили для первого тега, чтобы все теги выглядели одинаково */
.course-tag:first-child {
    background: transparent !important;
    color: #222 !important;
    border: 1px solid #d9d9d9 !important;
}
.course-tag-edit {
    font-size: 18px;
    border: none;
    border-radius: 18px;
    padding: 8px 22px;
    outline: none;
    margin-right: 6px;
    min-width: 120px;
    max-width: 220px;
    background: #f1f3f6;
    color: #222;
    box-shadow: 0 1px 2px rgba(80,80,120,0.04);
    transition: box-shadow 0.2s, background 0.2s;
    margin-bottom: 2px;
    animation: tagInputAppear 0.18s;
}
@keyframes tagInputAppear {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.course-tag-remove {
    background: none;
    border: none;
    color: #707DFF;
    font-size: 22px;
    font-weight: bold;
    margin-left: 10px;
    cursor: pointer;
    vertical-align: middle;
    transition: color 0.2s;
    outline: none;
}
.course-tag-remove:hover {
    color: #e53935;
}
.course-tag-add {
    background: #f1f3f6;
    color: #707DFF;
    border: none;
    border-radius: 18px;
    padding: 8px 22px;
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
    width: auto;
    height: auto;
}
.course-tag-add:hover {
    background: #e0e6ff;
}
.course-tag.dragging {
    opacity: 0.5;
}
.course-tag.dragover {
    outline: 2px dashed #707DFF;
    background: #e6eaff;
}
#duration-suffix {
    font-size: 18px;
    font-weight: 500;
}
/* Для Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Для Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

/* --- СТИЛИ ДЛЯ МОДАЛКИ ВЫБОРА ТЕГА --- */
#edit-tag-select-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.35);
    align-items: center;
    justify-content: center;
}
#edit-tag-select-modal[style*="display: flex"] {
    display: flex !important;
}
#edit-tag-select-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
    align-items: center;
    justify-content: flex-start;
}
#edit-tag-select-list .tag-select-btn {
    background: #f1f3f6;
    color: #444444;
    border: none;
    border-radius: 18px !important;
    width: 380px;
    height: 56px;
    font-size: 18px;
    font-family: 'Manrope', Arial, sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}
#edit-tag-select-list .tag-select-btn:hover {
    background: #e0e6ff;
    color: #707DFF;
}
#edit-tag-select-close, #edit-tag-select-modal .modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    font-size: 28px;
    color: #707DFF;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}
#edit-tag-select-close:hover, #edit-tag-select-modal .modal-close:hover {
    color: #e53935;
}
#edit-tag-select-modal .modal-content {
    background: #fff;
    border-radius: 18px;
    padding: 32px 28px;
    min-width: 420px;
    max-width: 90vw;
    box-shadow: 0 4px 32px rgba(80,80,120,0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: auto;
}
#edit-tag-select-modal .modal-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #707DFF;
    font-family: 'Comfortaa', Arial, sans-serif;
}
@media (max-width: 600px) {
    #edit-tag-select-modal .modal-content {
        min-width: 0;
        padding: 18px 6px;
    }
    #edit-tag-select-list .tag-select-btn {
        font-size: 10px;
        padding: 8px 12px;
        width: 100%;
        height: 44px;
    }
}
#editable-title:focus {
    background: #f7f8ff;
    border-bottom: 2px dashed #707DFF;
}
.course-category-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}
.course-category-tag, .course-popular-tag {
    background: #fff;
    color: #222;
    border: 1px solid #d9d9d9;
    border-radius: 24px;
    padding: 7px 22px;
    cursor: pointer;
    transition: color 0.18s, border 0.18s, background 0.18s;
    outline: none;
    margin-bottom: 0;
    display: inline-block;
}
.course-category-tag:hover, .course-popular-tag:hover {
    background-color: transparent;
    color: #707DFF;
    border-color: #707DFF;
}
.course-category-tag.active {
    border: 1px solid #707DFF;
    color: #707DFF;
}
.course-popular-tag.active {
    border: 1px solid #707DFF;
    color: #707DFF;
}
.course-popular-tag {
    margin-left: 0;
    margin-right: 0;
}
.course-tag,
.course-category-tag,
.course-popular-tag {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 18px;
}

/* --- Финансовая политика (тарифы) --- */
.tariffs-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tariffs-header-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 120px;
    gap: 12px;
    align-items: center;
    color: #3A4A5B;
    font-size: 16px;
    font-weight: 500;
}
.tariffs-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tariff-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 120px;
    gap: 12px;
    align-items: center;
}
.tariff-input {
    height: 44px;
    border-radius: 12px;
    border: 1.5px solid #e0e6ed;
    padding: 8px 12px;
    font-size: 16px;
    font-family: 'Manrope', sans-serif;
    box-sizing: border-box;
}
.tariff-actions { display: flex; justify-content: flex-end; }
.tariff-del-btn {
    background: #F7F7FB;
    color: #e53935;
    border: none;
    font-size: 18px;
    height: 44px;
    padding: 0px 20px;
    cursor: pointer;
}
.tariff-del-btn:hover {
    background: rgb(239, 238, 238) !important;
}
.tariff-add-btn {
    background: #f1f3f6;
    color: #707DFF;
    border: none;
    border-radius: 18px;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
}
.tariff-add-btn:hover {
    background: rgb(239, 238, 238) !important;
}
.tariff-col-name { padding-left: 6px; }
.tariff-col-price { padding-left: 6px; }
.tariffs-actions { margin-top: 6px; }

