* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------- header / nav ---------- */
.site-header {
    background: #fff;
    padding: 14px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.brand {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.brand-sub {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background 0.3s ease, color 0.3s ease;
}

.main-nav a:hover {
    background: #eef4fb;
    color: #4a90d9;
}

.main-nav .nav-add {
    background: #4a90d9;
    color: #fff;
}

.main-nav .nav-add:hover {
    background: #3a7bc8;
    color: #fff;
}

.main-nav .nav-service {
    background: #2c3e50;
    color: #fff;
}

.main-nav .nav-service:hover {
    background: #1a2b3a;
    color: #fff;
}

/* ---------- toolbar ---------- */
.toolbar {
    margin-bottom: 18px;
}

.search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #4a90d9;
}

.sort-select {
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    outline: none;
    cursor: pointer;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 7px 14px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    color: #555;
    transition: all 0.3s ease;
}

.chip:hover {
    border-color: #4a90d9;
    color: #4a90d9;
}

.chip.active {
    background: #4a90d9;
    border-color: #4a90d9;
    color: #fff;
}

/* ---------- gallery ---------- */
.container {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 90px;
    width: 100%;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.photo-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.photo-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.photo-card:hover img {
    transform: scale(1.02);
}

.card-body {
    padding: 12px;
}

.card-category {
    display: inline-block;
    font-size: 12px;
    color: #4a90d9;
    background: #eef4fb;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.photo-caption {
    font-size: 15px;
    color: #333;
    line-height: 1.4;
    font-weight: 500;
    min-height: 42px;
}

.photo-caption a {
    color: inherit;
    text-decoration: none;
}

.photo-caption a:hover {
    color: #4a90d9;
    text-decoration: underline;
}

.card-price {
    font-size: 16px;
    font-weight: 700;
    color: #27ae60;
    margin-top: 6px;
}

.photo-count {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #4a90d9;
    font-weight: 500;
}

/* ---------- favorites & top badge ---------- */
.photo-card { position: relative; }
.fav-heart {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    color: #ccc;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(0,0,0,0.18);
    transition: transform 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fav-heart:hover { transform: scale(1.1); color: #e74c3c; }
.fav-heart.active { color: #e74c3c; }
.card-top {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    background: linear-gradient(135deg,#ff6b35,#ff3366);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    letter-spacing: .5px;
}
.chip-link {
    display: inline-block;
    text-decoration: none;
}

/* ---------- favorites panel + header button ---------- */
.nav-fav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef4fb;
    color: #2c3e50;
    border: 1px solid #d8e6f5;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    line-height: 1;
}
.nav-fav:hover {
    background: #e2edf9;
    color: #4a90d9;
    border-color: #b9d5f0;
}
.nav-fav.has-favs {
    background: #fff0f3;
    border-color: #ffc2cf;
    color: #e74c3c;
}
.nav-fav.has-favs:hover {
    background: #ffe0e6;
}
.nav-fav .fav-heart-icon {
    font-size: 18px;
    line-height: 1;
    color: #e74c3c;
}
.nav-fav.has-favs .fav-heart-icon {
    color: #e74c3c;
}
.fav-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.fav-panel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 18px;
}
.fav-panel-inner {
    background: #fff;
    border: 1px solid #e5e9ef;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    padding: 18px 20px;
}
.fav-panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.fav-panel-title {
    font-size: 18px;
    color: #2c3e50;
}
.fav-panel-count {
    font-size: 13px;
    color: #9aa0a8;
}
.fav-panel-close {
    margin-left: auto;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #eef1f4;
    color: #5a6372;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}
.fav-panel-close:hover {
    background: #ffd7dc;
    color: #e74c3c;
}
.fav-panel-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}
.fav-card {
    position: relative;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.fav-card-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}
.fav-card-body {
    padding: 10px 12px;
}
.fav-card-cat {
    display: inline-block;
    font-size: 11px;
    color: #4a90d9;
    background: #eef4fb;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 6px;
}
.fav-card-title {
    display: block;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    margin-bottom: 6px;
    min-height: 38px;
}
.fav-card-title:hover {
    color: #4a90d9;
}
.fav-card-price {
    display: block;
    color: #27ae60;
    font-weight: 700;
    font-size: 15px;
}
.fav-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    color: #8a929c;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(0,0,0,0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}
.fav-remove:hover {
    background: #e74c3c;
    color: #fff;
}
.fav-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px 16px;
    color: #9aa0a8;
    font-size: 15px;
}

.empty-message {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 18px;
}

/* ---------- modal ---------- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    box-sizing: border-box;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    padding: 20px;
}

.modal-content img {
    max-width: 100%;
    max-height: 55vh;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.modal-content-text {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    text-align: left;
    padding: 10px;
}

.modal-counter {
    flex-shrink: 0;
    padding: 10px;
}

.modal-content p {
    color: #fff;
    margin-top: 12px;
    font-size: 15px;
    margin-bottom: 4px;
}

.modal-content .modal-theme {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 6px;
}

.modal-content .modal-category {
    color: #7fb3e8;
    font-size: 13px;
}

.modal-content .modal-price {
    color: #4ade80;
    font-weight: 700;
    font-size: 18px;
}

.modal-content #modal-description {
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 10px;
}

.modal-content .phone-link {
    color: #4a90d9;
    font-size: 18px;
    font-weight: 500;
    display: block;
    margin-top: 10px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: scale(1.1);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
    display: none;
}

.modal-nav:hover {
    background: rgba(255,255,255,0.4);
}

.modal-prev { left: 20px; }
.modal-next { right: 20px; }

/* ---------- forms ---------- */
.add-form {
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input[type="file"],
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #4a90d9;
}

.required {
    color: #e74c3c;
}

.char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.preview-item {
    position: relative;
    width: calc(33.333% - 7px);
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 8px;
    overflow: hidden;
}

.preview-item.is-preview {
    border-color: #4a90d9;
}

.preview-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.preview-badge {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    background: #4a90d9;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: #4a90d9;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: #3a7bc8;
}

.inline-btn {
    width: auto;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    padding: 10px 18px;
}

.error-message {
    color: #e74c3c;
    margin-top: 12px;
    text-align: center;
}

.success-message {
    color: #27ae60;
    margin-top: 12px;
    text-align: center;
}

.hint-note {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin-top: 12px;
}

.notice {
    max-width: 560px;
    margin: 0 auto 20px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-align: center;
}

.notice p {
    margin-bottom: 16px;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #4a90d9;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 18px;
}

/* ---------- auth / cabinet ---------- */
.auth-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 760px;
    margin: 0 auto 14px;
}

.auth-form {
    background: #fff;
    padding: 26px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.auth-form h2 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #2c3e50;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 12px;
    outline: none;
    transition: border-color 0.3s ease;
}

.auth-form input:focus {
    border-color: #4a90d9;
}

.cabinet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.cabinet-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #666;
}

.btn-logout {
    padding: 10px 16px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.btn-logout:hover {
    background: #c0392b;
}

.my-ads {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ad-edit-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 16px;
}

.ad-edit-main {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.ad-edit-main img {
    width: 160px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.ad-edit-fields {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ad-edit-fields input,
.ad-edit-fields select,
.ad-edit-fields textarea {
    width: 100%;
    padding: 9px 11px;
    border: 2px solid #e0e0e0;
    border-radius: 7px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.ad-edit-fields input:focus,
.ad-edit-fields select:focus,
.ad-edit-fields textarea:focus {
    border-color: #4a90d9;
}

.edit-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.edit-row select { flex: 1.2; }
.edit-row .edit-price { flex: 0.8; }
.edit-row .edit-phone { flex: 1; }

.ad-edit-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.btn-save-ad {
    padding: 9px 18px;
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.btn-save-ad:hover {
    background: #1e8449;
}

.btn-delete-group {
    padding: 9px 18px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.btn-delete-group:hover {
    background: #c0392b;
}

.status-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    width: fit-content;
}

.st-approved { background: #e8f8f0; color: #1e8449; }
.st-pending { background: #fef5e7; color: #b9770e; }
.st-rejected { background: #fdedec; color: #c0392b; }

.photo-count-badge {
    font-size: 13px;
    color: #666;
}

/* ---------- footer ---------- */
.site-footer {
    background: #2c3e50;
    color: #d5dbdb;
    padding: 20px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}

.footer-block strong {
    color: #fff;
}

.footer-block a {
    color: #7fb3e8;
    text-decoration: none;
}

.footer-block a:hover {
    text-decoration: underline;
}

.footer-phone {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

/* ---------- hamburger menu ---------- */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ---------- responsive ---------- */
@media (max-width: 640px) {
    .site-header {
        padding: 12px;
        position: relative;
    }

    .header-inner {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .brand-title {
        font-size: 20px;
    }

    .hamburger {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255,255,255,0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1000;
    }

    .main-nav.active {
        opacity: 1;
        visibility: visible;
    }

    .main-nav a {
        font-size: 18px;
        padding: 14px 28px;
        min-width: 200px;
        text-align: center;
    }

    .nav-fav {
        font-size: 18px;
        padding: 14px 28px;
        min-width: 200px;
        justify-content: center;
    }

    .container {
        padding: 16px;
        padding-bottom: 90px;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .photo-card img {
        height: 200px;
    }

    .photo-card {
        min-height: 280px;
    }

    .auth-cols {
        grid-template-columns: 1fr;
    }

    .ad-edit-main img {
        width: 100%;
        height: 180px;
    }

    .search-row {
        flex-direction: column;
    }

    .footer-inner {
        flex-direction: column;
    }

    .chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 8px;
    }

    .chips::-webkit-scrollbar {
        display: none;
    }

    .chip {
        flex-shrink: 0;
        padding: 10px 16px;
        font-size: 14px;
    }

    .service-banner {
        padding: 16px;
    }

    .sb-title {
        font-size: 18px;
    }

    .sb-sub {
        font-size: 13px;
    }

    .sb-cta {
        padding: 12px 16px;
        font-size: 14px;
    }

    .modal-content {
        padding: 10px;
        max-width: 100vw;
    }

    .modal-content img {
        max-height: 45vh;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }

    .modal-prev { left: 10px; }
    .modal-next { right: 10px; }

    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .chips::-webkit-scrollbar {
        display: none;
    }

    .chip {
        flex-shrink: 0;
    }
}

/* ---------- language switcher ---------- */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 4px;
}

.lang-btn {
    background: transparent;
    border: 1px solid #c4c9d1;
    border-radius: 6px;
    padding: 4px 9px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    opacity: 0.55;
    transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
    opacity: 0.85;
}

.lang-btn.active {
    opacity: 1;
    border-color: #4a90d9;
    color: #4a90d9;
    background: rgba(74, 144, 217, 0.08);
}

/* ---------- service banner ---------- */
.service-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, #4a90d9, #2c6bb3);
    color: #fff;
    border-radius: 12px;
    padding: 18px 22px;
    margin: 0 0 20px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(42, 107, 179, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(42, 107, 179, 0.35);
}

.sb-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sb-title {
    font-size: 20px;
    font-weight: 700;
}

.sb-sub {
    font-size: 14px;
    opacity: 0.92;
}

.sb-cta {
    flex-shrink: 0;
    background: #fff;
    color: #2c6bb3;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 8px;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .service-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .sb-cta {
        white-space: normal;
    }
}

/* ---------- delivery module ---------- */
.delivery-checks {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.dlc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e8eaf0;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 12px;
    border: 1px solid #232c38;
    border-radius: 10px;
    background: #151d27;
}

.dlc input {
    width: 16px;
    height: 16px;
    accent-color: #1c92d2;
}

.dlc:hover {
    border-color: #1c92d2;
}

.edit-row.delivery-edit {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.orders-section {
    margin-top: 34px;
}

.orders-section .page-title {
    margin-bottom: 14px;
}

.order-empty {
    color: #9aa7b8;
    padding: 14px 0;
    font-size: 14px;
}

.order-item {
    background: #131b26;
    border: 1px solid #232c38;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.order-item-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.order-item-theme {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

.order-item-meta {
    color: #c7cfda;
    font-size: 14px;
    line-height: 1.55;
    margin-top: 4px;
}

.order-status {
    padding: 2px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.order-status-new {
    background: rgba(255, 179, 71, 0.18);
    color: #ffb347;
}

.order-status-done {
    background: rgba(39, 174, 96, 0.18);
    color: #27ae60;
}

.order-status-cancelled {
    background: rgba(255, 77, 79, 0.15);
    color: #ff4d4f;
}

.order-item-actions {
    margin-top: 10px;
}

.done-btn {
    padding: 6px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    font-weight: 600;
    font-size: 13px;
}

.done-btn:hover {
    background: rgba(39, 174, 96, 0.32);
}
