:root {
    --primary-red: #e60012;
    --primary-hover: #cc0010;
    --bg-page: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-ui: #e2e8f0;
}

body {
    background-color: var(--bg-page);
    overflow-x: hidden;
}

.srv-detail-container {
    max-width: 1240px;
    margin: 20px auto 60px;
    padding: 0 16px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 15.5px;
    line-height: 1.6;
    color: #334155;
    box-sizing: border-box;
}

.srv-breadcrumb {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.srv-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}
.srv-breadcrumb a:hover {
    color: var(--text-dark);
}

/* BỐ CỤC 2 CỘT DESKTOP */
.srv-main-grid {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 24px;
    align-items: start;
}

.srv-left-sticky {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 10;
}

/* CARD PHẲNG HIỆN ĐẠI (BO GÓC MỀM MẠI 16PX) */
.srv-card-flat {
    background: #ffffff;
    border: 1px solid var(--border-ui);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    overflow: hidden;
    box-sizing: border-box;
}

.srv-detail-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.srv-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f9ff;
    color: #0284c7;
    font-size: 12.5px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    border: 1px solid #e0f2fe;
}

.srv-detail-title {
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 8px;
    line-height: 1.4;
    word-break: normal;
    overflow-wrap: break-word;
}

.srv-detail-price {
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 2px;
}

/* GRID THÔNG SỐ VÀ TIỆN ÍCH */
.srv-commit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
}
.srv-commit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #334155;
}
.srv-commit-item b {
    font-weight: 600;
}

/* CỤM NÚT BẤM */
.srv-btn-group {
    display: flex !important;
    gap: 10px;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
}

.srv-btn-order {
    flex: 1.3;
    padding: 12px 18px;
    background: var(--primary-red);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(230,0,18,0.25);
    transition: all 0.2s ease;
}
.srv-btn-order:hover { 
    background: var(--primary-hover); 
    transform: translateY(-1px);
}

.srv-btn-zalo {
    flex: 1;
    padding: 12px 16px;
    background: #0068ff;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.srv-btn-zalo:hover { 
    background: #0056d6; 
    transform: translateY(-1px);
}

/* NỘI DUNG CÔNG VIỆC CỘT PHẢI - THỤT LỀ DANH SÁCH CHUẨN ĐẸP */
.srv-work-content {
    background: #ffffff;
    border: 1px solid var(--border-ui);
    border-radius: 16px;
    padding: 28px 32px;
    line-height: 1.85;
    font-size: 15.5px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    color: #334155;
    box-sizing: border-box;
}
.srv-work-content h2, 
.srv-work-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 22px 0 14px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
}
.srv-work-content h2:first-child {
    margin-top: 0;
}

/* THỤT LỀ DANH SÁCH LIST VÀO TRONG */
.srv-work-content ul, 
.srv-work-content ol {
    padding-left: 28px !important;
    margin: 12px 0 18px !important;
}
.srv-work-content li {
    margin-bottom: 8px;
    line-height: 1.75;
}
.srv-work-content li strong, 
.srv-work-content li b {
    font-weight: 600;
    color: var(--text-dark);
}

.srv-work-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px;
    margin: 14px 0;
}

/* ============================================================== */
/* MODAL BỐ CỤC ĐẶT DỊCH VỤ HIỆN ĐẠI & SÁNG SỦA (SOFT UI)          */
/* ============================================================== */
.srv-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    padding: 16px;
    box-sizing: border-box;
}

.srv-modal-box {
    background: #ffffff;
    width: 100%;
    max-width: 490px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.15);
    border: 1px solid var(--border-ui);
    box-sizing: border-box;
    animation: modalFadeIn 0.22s ease-out;
}

/* HEADER MODAL NỀN TRẮNG SÁNG THANH LỊCH (KHÔNG DÙNG NỀN ĐEN) */
.srv-modal-header {
    background: #ffffff;
    padding: 16px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
}

.srv-modal-title {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
}

/* NÚT QUAY LẠI (ẨN TRÊN MÁY TÍNH) */
.srv-modal-back-btn {
    display: none;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

/* NÚT DẤU X ĐÓNG TRÊN MÁY TÍNH */
.srv-modal-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid var(--border-ui);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}
.srv-modal-close-btn:hover {
    background: #f1f5f9;
    color: var(--primary-red);
    border-color: #fecaca;
}

.srv-modal-body {
    padding: 20px 22px 24px;
}

/* KHỐI TÓM TẮT SẢN PHẨM TRÊN ĐẦU MODAL (THUMBNAIL BÊN TRÁI, TÊN & GIÁ BÊN PHẢI) */
.srv-modal-prod-summary {
    background: #f8fafc;
    border: 1px solid var(--border-ui);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.srv-modal-thumb-box {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    border: 1px solid var(--border-ui);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    padding: 2px;
}

.srv-modal-thumb-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.srv-modal-prod-info {
    flex: 1;
    min-width: 0;
}

.srv-modal-prod-name {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.srv-modal-prod-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-red);
}

/* THÔNG BÁO ĐĂNG KÝ THÀNH VIÊN THEO DÕI ĐƠN HÀNG */
.srv-register-lead-box {
    background: #eff6ff;
    border: 1px dashed #93c5fd;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 13px;
    color: #1d4ed8;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.srv-register-lead-box a {
    color: #0284c7;
    font-weight: 600;
    text-decoration: underline;
}

/* KHỐI TEXT THÔNG TIN ĐÃ ĐĂNG NHẬP */
.srv-user-synced-card {
    background: #f8fafc;
    border: 1px solid var(--border-ui);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
.srv-user-synced-row {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    margin-bottom: 6px;
    gap: 8px;
}
.srv-user-synced-row:last-child {
    margin-bottom: 0;
}
.srv-user-synced-row span {
    color: var(--text-muted);
    flex-shrink: 0;
}
.srv-user-synced-row strong {
    color: var(--text-dark);
    font-weight: 600;
    text-align: right;
    word-break: break-word;
    max-width: 70%;
}

/* KHỐI BỔ SUNG TRỰC TIẾP TRƯỜNG CÒN THIẾU */
.srv-inline-prompt-box {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
}
.srv-inline-warn-text {
    font-size: 12.5px;
    color: #b45309;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.srv-form-group {
    margin-bottom: 12px;
}
.srv-form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
}
.srv-form-input, 
.srv-form-textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    background: #ffffff;
    color: #0f172a;
    transition: border-color 0.15s;
}
.srv-form-input:focus, 
.srv-form-textarea:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.srv-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.btn-srv-cancel {
    padding: 9px 16px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #475569;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
}
.btn-srv-submit {
    padding: 9px 22px;
    background: var(--primary-red);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-srv-submit:hover {
    background: var(--primary-hover);
}

/* ============================================================== */
/* TỐI ƯU GIAO DIỆN DI ĐỘNG & IPAD FULL MÀN HÌNH NHƯ APP          */
/* ============================================================== */
@media (max-width: 900px) {
    .srv-detail-container {
        margin: 0 auto 50px;
        padding: 0;
        width: 100%;
    }
    .srv-breadcrumb {
        padding: 12px 16px;
        margin-bottom: 0;
    }
    .srv-main-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .srv-left-sticky {
        position: static;
        gap: 12px;
    }
    .srv-card-flat, .srv-work-content {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        box-shadow: none !important;
    }
    .srv-detail-img {
        height: 230px;
        border-radius: 0 !important;
    }
    .srv-detail-title {
        font-size: 1.35rem;
        line-height: 1.35;
    }
    .srv-work-content {
        padding: 20px 16px;
    }
    .srv-work-content ul, 
    .srv-work-content ol {
        padding-left: 20px !important;
    }
    .srv-commit-grid {
        border-radius: 8px;
        padding: 12px;
    }
    .srv-btn-group {
        flex-direction: row;
    }

    /* FULL MÀN HÌNH CHẾ ĐỘ APP TRÊN MOBILE/IPAD (CHỪA 65PX BOTTOM NAV) */
    .srv-modal-overlay {
        padding: 0 !important;
        background: #ffffff !important;
        align-items: stretch !important;
        justify-content: stretch !important;
        bottom: 65px !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 2500 !important;
    }

    .srv-modal-box {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border: none !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .srv-modal-header {
        border-radius: 0 !important;
        padding: 14px 16px !important;
        background: #ffffff !important;
        border-bottom: 1px solid var(--border-ui) !important;
        flex-shrink: 0;
    }

    /* BẬT NÚT QUAY LẠI TRÊN DI ĐỘNG */
    .srv-modal-back-btn {
        display: inline-flex !important;
    }

    /* ẨN NÚT DẤU X TRÊN DI ĐỘNG */
    .srv-modal-close-btn {
        display: none !important;
    }

    .srv-modal-title {
        font-size: 15px !important;
    }

    .srv-modal-body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 16px 14px 30px !important;
    }

    .srv-modal-actions .btn-srv-cancel {
        display: none !important;
    }
    .srv-modal-actions .btn-srv-submit {
        width: 100% !important;
        padding: 12px !important;
        font-size: 15px !important;
        border-radius: 10px !important;
    }
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}
/* STYLE CHO BADGE TẬN NƠI VÀ TỪ XA */
    .srv-badge-tag {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 12px;
    }

    /* Khắc phục tận nơi tại TP.HCM */
    .badge-tag-onsite {
        background: #f0fdf4;
        color: #16a34a;
        border: 1px solid #bbf7d0;
    }

    /* Khắc phục từ xa Ultraviewer */
    .badge-tag-remote {
        background: #eff6ff;
        color: #0284c7;
        border: 1px solid #bfdbfe;
    }

    .srv-commit-item {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13.5px;
        color: #64748b;
    }
    .srv-commit-item b {
        color: #0f172a;
    }
    .srv-commit-item svg {
        flex-shrink: 0;
        stroke: #64748b; /* Tông màu đơn sắc đồng bộ */
    }
