body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 40px;
    margin: 0;
    text-align: center;
}
.container {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    max-width: 1200px;
    width: 90%;
    margin-bottom: 20px;
    box-sizing: border-box;
}
#container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
@media (max-width: 600px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding: 1.5rem;
    }
}
h1, h3 {
    margin-top: 0;
}
p {
    margin-bottom: 0;
}
.search-wrapper {
    padding: 1.0rem;
    max-width: 600px;
    width: 90%;
    margin: 0px;
    box-sizing: border-box;
}
.search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.search-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}
.search-input:focus {
    border-color: #2563eb;
}
.search-button {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.search-button:hover {
    background-color: #1d4ed8;
}
.status-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto 0px auto;
    box-sizing: border-box;
}
.status-bar a {
    text-decoration: none;
    font-size: 12px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}
.status-bar > form {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
}
.status-bar > select {
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    appearance: none;
    -webkit-appearance: none;
    text-align: center;
    min-width: 48px;
    box-sizing: border-box;
}
.status-bar > select:focus {
    outline: none;
    border-color: #2563eb;
}
.status-text {
    flex: 1;
    min-width: 200px;
    text-align: left;
    margin-right: 10px;
}
.status-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    margin-left: auto;
}
.status-actions a {
    text-decoration: none;
    color: #2563eb;
    font-weight: 500;
    transition: color 0.2s;
}
.status-actions a:hover {
    color: #1d4ed8;
}
.status-actions select {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.login-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    max-width: 400px;
    width: 90%;
    margin-top: 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
}
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;   
}
.form-group label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    color: #1e293b;
    word-wrap: break-word;  
    white-space: normal;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s;
    background-color: white;
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-group select.section-select,
.section-select {
    background-color: #f0f7ff;
    border-color: #bfdbfe;
    color: #1e40af;
    font-weight: 600;
}
.form-group select.section-select:focus,
.section-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.section-title {
    color: #1e40af;
}
.form-row-group {
    display: flex;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap; 
}
.form-row-group .flex-2 {
    flex: 2;
    min-width: 180px;
}
.form-row-group .flex-1 {
    flex: 1;
    min-width: 100px;
}
@media (max-width: 480px) {
    .form-row-group .flex-2,
    .form-row-group .flex-1 {
        flex: 1 1 100%;
    }
}
.form-additional-group {
    background:#f8fafc;
    padding:20px;
    border-radius:8px;
    border:1px dashed #cbd5e1;
    margin-top:10px;
}
.form-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 400;
    color: #334155;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
    user-select: none;
}
.checkbox-label input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
    vertical-align: middle;
}
@media (max-width: 500px) {
    .form-checkbox-group {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
.field-error {
    color: #dc2626;
    font-size: 0.8em;
    margin-top: 5px;
}
.submit-button {
    width: 100%;
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}
.submit-button:hover {
    background-color: #1d4ed8;
}
.delete-button {
    width: 100%;
    background-color: #dc2626;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}
.delete-button:hover {
    background-color: #b91c1c;
}
.button-row {
    display: flex;
    gap: 10px;
    text-align: left;
    align-items: center;
}
.button-row p {
    margin: 0;
}
.login-footer {
    margin-top: 1.5rem;
    font-size: 14px;
    text-align: center;
}
.login-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}
.login-footer a:hover {
    text-decoration: underline;
}
.subcategories {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 20px;
    margin-top: 10px;
    justify-content: start;
}
.sub-item {
    font-size: 0.9em;
    color: #0066cc;
    text-decoration: none;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.sub-item:hover {
    text-decoration: underline;
}
.sub-item-word-wrap {
    font-size: 0.9em;
    color: #0066cc;
    text-decoration: none;
    text-align: left;
    display: block;
    white-space: normal;
    word-wrap: break-word;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.4;
}
.sub-item-word-wrap:hover {
    text-decoration: underline;
}
@media (max-width: 600px) {
    .subcategories {
        grid-template-columns: 1fr;
    }
}
.tip-container {
    display: flex;
    justify-content: center;
    padding: 0 20px;
    font-size: 12px;
}
.tip-text {
    text-align: center;
    max-width: 100%;
    width: 100%;
}
.copyright {
    margin-bottom: 8px;
    word-wrap: break-word;
}
.tip-actions form {
    margin: 0;
}
.tip-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.tip-actions a,
.tip-actions a:link,
.tip-actions a:visited,
.tip-actions a:hover,
.tip-actions a:active,
.tip-actions a:focus,
.tip-actions a:-webkit-any-link {
    text-decoration: none !important;
    color: #2563eb !important;
    font-weight: 500;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}
.alert {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.alert-error {
    color: red;
    border: 1px solid red;
    background: #fff5f5;
}
.alert-success {
    color: green;
    border: 1px solid green;
    background: #f5fff5;
}
.alert-light-gray {
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.alert-green {
    border: 1px solid green;
}
.alert-green p {
    text-align: left;
    margin-bottom: 0;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.alert-green p form {
    display: inline;
}
.alert-green p form a {
    display: inline-flex;
    vertical-align: middle;
}
.alert-green p img {
    vertical-align: middle;
    display: inline-block;
}
.alert-green pre {
    text-align: left;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.pagination {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}
.search-snippet {
    font-size: 0.85em;
    color: #64748b;
    margin-top: 4px;
    text-align: left;
}
.listings-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 12px;
    box-sizing: border-box;
}
.listings-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}
.listing-box {
    width: 100%;
    max-width: 100%;
    border: 1px solid #43a047;
    border-radius: 12px;
    padding: 12px 16px;
    box-sizing: border-box;
}
.listing-box-red {
    border-color: #e53935;
}
.listing-box-green {
    border-color: #43a047;
}
.listing-box-blue {
    border-color: #1e88e5;
}
.listing-row-two {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.listing-row-three {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
}
.listing-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}
.listing-price {
    font-weight: 700;
    color: #2563eb;
}
.listing-snippet {
    font-size: 0.85em;
    color: #64748b;
    line-height: 1.4;
}
.listing-details-title {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-all;
}
.favorites-btn {
    cursor: pointer;
    font-size: 1.3em;
    line-height: 1;
    user-select: none;
    color: #94a3b8;
    transition: color 0.15s, transform 0.15s;
    display: inline-flex;
    align-items: center;
    padding: 4px 6px;
    border-radius: 6px;
}
.favorites-btn:hover {
    color: #e11d48;
    transform: scale(1.2);
    background-color: #fff1f2;
}
.job-listings-details-container {
    text-align: left;
    max-width: 900px;
    margin: 20px auto;
}
.job-listings-details-breadcrumbs {
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #64748b;
}
.job-listings-details-breadcrumbs a {
    color: #2563eb;
    text-decoration: none;
}
.job-listings-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}
.job-listings-details-grid > div {
    min-width: 0;
}

@media (max-width: 768px) {
    .job-listings-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
.job-listings-details-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.85em;
    color: #64748b;
    margin-bottom: 16px;
}
.job-listings-details-sidebar {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.job-listings-details-price-title {
    font-size: 0.85em;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}
.job-listings-details-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2563eb;
}
.job-listings-details-contacts-header {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 8px;
}
.job-listings-details-author {
    font-size: 1.05rem;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 15px;
}
.job-listings-details-contact-button {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background-color 0.2s;
}
.job-listings-details-contact-button:hover {
    background-color: #1d4ed8;
}
.job-listings-details-description-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.job-listings-details-description {
    line-height: 1.6;
    color: #334155;
    font-size: 1.05rem;
    word-wrap: break-word;
}
.job-listings-attributes-container {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.job-listings-attribute-row {
    font-size: 0.9em;
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.job-listings-attribute-label {
    color: #94a3b8;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: bold;
}
.job-listings-attribute-value {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}
.job-listings-tag {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.85em;
    font-weight: 500;
}
.btn-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #1e293b;
}
.btn-outline:hover {
    border-color: #1e293b;
    background: #f8fafc;
}
.btn-sm {
    width: auto;
    padding: 8px 16px;
    font-size: 0.9rem;
}
.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    align-items: stretch;
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: left;
    width: 100%;
}
.tariff-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}
.tariff-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.04);
}
.tariff-card.popular {
    border: 2px solid #2563eb;
    box-shadow: 0 15px 25px rgba(37, 99, 235, 0.08);
}
.tariff-card.popular:hover {
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.15);
}
.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.tariff-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}
.tariff-audience {
    font-size: 0.85rem;
    color: #64748b;
    min-height: 70px;
    margin-bottom: 15px;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 12px;
    line-height: 1.4;
}
.tariff-price {
    margin-bottom: 20px;
}
.price-num {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
}
.price-period {
    font-size: 0.85rem;
    color: #64748b;
}
.price-subtext {
    display: block;
    font-size: 0.8rem;
    color: #43a047;
    font-weight: 600;
    margin-top: 4px;
}
.price-uah {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 4px;
}
.features-list {
    list-style: none;
    margin-bottom: 10px;
    padding: 0;
    flex-grow: 1;
}
.features-list li {
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    color: #334155;
}
.features-list li::before {
    content: "✓";
    color: #43a047;
    font-weight: bold;
    margin-right: 8px;
    flex-shrink: 0;
}
.features-list li.not-available {
    color: #94a3b8;
}
.features-list li.not-available::before {
    content: "✕";
    color: #cbd5e1;
}
.packages-section {
    margin-top: 20px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
}
.package-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    background: white;
}
.package-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}
.package-info p {
    font-size: 0.8rem;
    color: #64748b;
}
.user-tariff-widget {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    text-align: left;
    margin-bottom: 20px;
}
.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.tariff-info, .tariff-date {
    display: flex;
    flex-direction: column;
}
.tariff-label, .date-label {
    font-size: 13px;
    color: #718096;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tariff-name {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}
.tariff-date {
    text-align: right;
}
.date-value {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
}
.date-value .time {
    font-weight: 400;
    color: #718096;
    font-size: 14px;
    margin-left: 2px;
}
.widget-limits {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.limit-item {
    display: flex;
    flex-direction: column;
}
.limit-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}
.limit-title {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}
.limit-count {
    font-size: 13px;
    color: #718096;
}
.limit-count strong {
    color: #1a202c;
    font-size: 16px;
    font-weight: 700;
}
.progress-bar {
    background: #edf2f7;
    border-radius: 8px;
    height: 10px;
    width: 100%;
    overflow: hidden;
    position: relative;
}
.progress-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: #3182ce;
}
.progress-fill.warning {
    background: #dd6b20;
}
.progress-fill.danger {
    background: #e53e3e;
}
.limit-item.empty .limit-title {
    color: #a0aec0;
}
.limit-item.empty .limit-count strong {
    color: #a0aec0;
}
.limit-item.empty .progress-bar {
    background: #f7fafc;
}
.limit-action {
    margin: 6px 0 0 0;
    font-size: 13px;
    text-align: right;
}
.limit-action form {
    display: inline;
}
.limit-action-btn {
    background: none;
    border: none;
    color: #3182ce;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-size: 13px;
    text-decoration: none;
}
.limit-action-btn:hover {
    text-decoration: underline;
    color: #2b6cb0;
}
@media (max-width: 480px) {
    .widget-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .tariff-date {
        text-align: left;
    }
}
.modal-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.modal-dialog-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}
.modal-dialog-content-center {
    max-width: 400px;
    text-align: center;
}
.modal-dialog-content-left {
    max-width: 450px;
    text-align: left;
}
.modal-dialog-text {
    color: #334155;
    font-size: 1.05rem;
    margin-bottom: 24px;
}
.modal-dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.modal-dialog-btn-primary {
    display: inline-block;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s;
}
.modal-dialog-btn-primary:hover {
    background-color: #1d4ed8;
}
.modal-dialog-btn-secondary {
    display: inline-block;
    text-decoration: none;
    background-color: #f1f5f9;
    color: #475569;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s;
}
.modal-dialog-btn-secondary:hover {
    background-color: #e2e8f0;
}
.modal-dialog-btn-close {
    display: block;
    margin-top: 25px;
    width: 100%;
    box-sizing: border-box;
}
.header-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-sizing: border-box;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}
.modal-dialog-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}
.modal-dialog-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: #334155;
}
.modal-dialog-info {
    margin-top: 5px;
    color: #475569;
    background: #f8fafc;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 0.95em;
    max-height: 150px;
    overflow-y: auto;
}
.limit-notice {
    font-size: 0.7em;
    color: #6b7280;
    margin-top: 10px;
    line-height: 1.4;
}
.search-container {
    margin-top: 50px;
    width: 90%;
    max-width: 600px;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: left;
    box-sizing: border-box;
}
.search-main {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.advanced-options {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    padding-top: 0;
    padding-left: 15px;
    padding-right: 15px;
}
.advanced-options.open {
    max-height: 2000px;
    opacity: 1;
    padding-top: 20px;
}
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}
@media (max-width: 480px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
    .advanced-options {
        padding-left: 10px;
        padding-right: 25px;
    }
    .search-container {
        padding: 1.5rem;
        width: 95%;
    }
}
#category_id,
#category_id option {
    white-space: normal;
    text-overflow: clip;
    overflow: visible;
}
.checkbox-section {
    margin-top: 25px;
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
    text-align: left;
    width: 100%;
}
.section-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 12px;
}
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 100;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
}
.autocomplete-suggestion-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #334155;
    transition: background 0.15s;
}
.autocomplete-suggestion-item:hover {
    background: #f1f5f9;
}
.promocode-group {
    margin-top: 5px;
    margin-bottom: 15px;
    text-align: left;
}
.promocode-group label {
    font-size: 0.85rem;
    color: #64748b;
    display: block;
    margin-bottom: 4px;
}
.promocode-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
    box-sizing: border-box;
}
.promocode-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}
.modal-dialog-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #ffffff;
    color: #2563eb;
    border: 1px solid #e2e8f0;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.modal-dialog-link:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}
.modal-dialog-link:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.modal-dialog-link img,
.modal-dialog-link span {
    display: inline-block;
    vertical-align: middle;
}
.seo-href {
    font-size: 0;
}
.listing-with-photo {
    overflow: hidden;
}
.listing-author-photo-link {
    float: left;
}
.listing-author-photo {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 10px;
    margin-bottom: 5px;
}
.listing-content {
    min-width: 0;
}
.listing-content .listing-row-two {
    width: auto;
}
.current-photo-img {
    width: 100px;
    height: 100px;
    object-fit: none;
    object-position: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin-bottom: 16px;
}
.listing-detail-author-photo {
    margin-bottom: 12px;
    text-align: center;
}
.chat-history {
    max-height: 450px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    background-color: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}
.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 75%;
}
.chat-message-mine {
    align-self: flex-end;
    align-items: flex-end;
}
.chat-message-theirs {
    align-self: flex-start;
    align-items: flex-start;
}
.chat-message-body {
    padding: 10px 16px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.4;
    word-break: break-word;
}
.chat-message-mine .chat-message-body {
    background-color: #2563eb;
    color: white;
    border-bottom-right-radius: 4px;
}
.chat-message-theirs .chat-message-body {
    background-color: #e2e8f0;
    color: #1e293b;
    border-bottom-left-radius: 4px;
}
.chat-message-time {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
    padding: 0 4px;
}
.unread-badge {
    background-color: #ef4444;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 9999px;
    display: inline-block;
    min-width: 10px;
    text-align: center;
}
.photo-gallery-wrapper {
    margin-top: 25px;
    text-align: left;
    width: 100%;
}
.photo-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}
.photo-gallery-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}
.photo-limit-info {
    font-size: 0.85rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 20px;
}
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}
.photo-slot {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background-color: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    overflow: hidden;
}
.photo-slot:hover {
    border-color: #2563eb;
    background-color: #f1f5f9;
}
.photo-slot.has-image {
    border-style: solid;
    border-color: #e2e8f0;
    cursor: default;
}
.photo-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}
.photo-placeholder {
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 0;
}
.photo-placeholder svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}
.photo-placeholder span {
    font-size: 0.9rem;
    font-weight: 500;
}
.photo-slot input[type="file"] {
    display: none;
}
.photo-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    color: #dc2626;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s;
    border: none;
    padding: 0;
}
.photo-remove-btn:hover {
    background-color: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
    transform: scale(1.1);
}
.photo-slot.has-image .photo-remove-btn {
    display: flex;
}
.main-photo-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background-color: #43a047;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 3;
    display: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.photo-slot.has-image[data-index="0"] .main-photo-badge {
    display: block;
}
.photo-slot.has-image[data-index="0"] {
    border-color: #43a047;
}
.product-gallery {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.product-main-photo-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    aspect-ratio: 4/3; 
    background-color: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
    cursor: zoom-in;
    border: 1px solid #e2e8f0;
}
.product-main-photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Или contain, если важно не обрезать */
    display: block;
    transition: transform 0.3s ease;
}
.product-main-photo-container:hover img {
    transform: scale(1.02);
}
.photo-counter-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
    pointer-events: none;
}
.product-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-bottom: 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.product-thumbnails::-webkit-scrollbar {
    display: none;
}
.thumb-item {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.2s;
    background-color: #f1f5f9;
}
.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.thumb-item:hover {
    opacity: 0.9;
}
.thumb-item.active {
    border-color: #2563eb;
    opacity: 1;
}
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.95);
    z-index: 10000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}
.fs-close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10003;
    padding: 10px;
    opacity: 0.75;
    transition: all 0.2s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.fs-close-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}
.fs-image-container {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.fs-image-container img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    user-select: none;
}
.fs-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.65);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.6);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10002; /* Поверх картинки */
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.fs-nav-btn:hover {
    background: #ffffff;
    color: #0f172a;
    border-color: #ffffff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.fs-prev { left: 30px; }
.fs-next { right: 30px; }
@media (max-width: 768px) {
    .fs-nav-btn {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
        background: rgba(15, 23, 42, 0.8);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }
    .fs-prev { left: 15px; }
    .fs-next { right: 15px; }
    .fs-close-btn { top: 15px; right: 15px; }
}
.fs-counter {
    position: absolute;
    bottom: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 500;
}